#!/bin/bash
mkdir /var/adm/Squota ; chmod u=rwx,go-rwx /var/adm/Squota
cp Squota /usr/local/bin/Squota ; chmod 711 /usr/local/bin/Squota
cp Squotaday /usr/local/bin/Squotaday ; chmod 711 /usr/local/bin/Squotaday
cp Squotack /usr/local/bin/Squotack ; chmod 711 /usr/local/bin/Squotack
cp quotavars /var/adm/Squota/quotavars ; chmod 644 /var/adm/Squota/quotavars
echo "23 50 * * * /usr/local/bin/Squota" >>/usr/spool/cron/crontabs/root
echo "23 55 * * * /usr/local/bin/Squotaday" >>/usr/spool/cron/crontabs/root
> /var/adm/Squota/quota.users
